package com.xindaoapp.happypet.view;

import android.app.Activity;
import android.graphics.drawable.ColorDrawable;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.PopupWindow;

import com.xindaoapp.happypet.R;

public class HelpPopupWindow extends PopupWindow {

    private final Activity mContext;

    public HelpPopupWindow(Activity context) {
        super(context);
        this.mContext = context;
    }

    public HelpPopupWindow init(View helpView) {
        this.setContentView(helpView);
        this.setWidth(LinearLayout.LayoutParams.MATCH_PARENT);
        this.setHeight(LinearLayout.LayoutParams.MATCH_PARENT);
        this.setFocusable(true);
        // this.setAnimationStyle(R.style.PopupAnimation);
        this.setBackgroundDrawable(new ColorDrawable(mContext.getResources().getColor(
                R.color.transparent)));
        return this;
    }


}
